Fix closing of /var/log/xend.log fd
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 1 Sep 2005 10:26:17 +0000 (10:26 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 1 Sep 2005 10:26:17 +0000 (10:26 +0000)
commit8f9701718f77ee8d242e79c1f57ddf6d9a76a6f2
tree5b38c3de4d995718b81f4bde76f988dfa8e19b5d
parent710130e99d15a60348c6452c830f2f8c50893d41
Fix closing of /var/log/xend.log fd
Fix the problem where /var/log/xend.log was getting closed and then
/var/log/xend-debug was getting all the spam about the fd being closed
in the logging stuff.

Basically what was happening is that the main thread wasn't sticking
around and during its exit, the atexit handlers of the python logging
stuff got called closing the log fd.

Patch makes it so that we instead wait on the real server threads to
exit before shutting things down.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/server/SrvServer.py